package com.future.hedongjun.mine.bean;

import android.util.Log;

import com.future.baselib.entity.BaseResponse;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by gxcheng on 2017/9/19.
 */

public class DeliveryAddressResponse extends BaseResponse {

    private List<DeliveryAddressBean> mDeliveryAddressList;

    @Override
    public void parseInfo(String content) throws JSONException {
        Log.e("tag", "parseInfo: "+content );
        Type type = new TypeToken<ArrayList<DeliveryAddressBean>>() {}.getType();
        mDeliveryAddressList=new Gson().fromJson(content,type);
    }

    public List<DeliveryAddressBean> getDeliveryAddressList(){
        return mDeliveryAddressList;
    }

}
